#ifdef a
#include<stdio.h>
#include<string.h>
int main() {
    char* name[5] = { "0   ","0   ","0   ","0   ","0   " };
    //此处不能直接初始化为0，否则fscanf中不能对空指针进行访问
    //还要给元素字符串足够大的空间，否建会花里胡哨
    FILE* pf1 = NULL;
    pf1 = fopen("in.txt", "r");
    if (!pf1) {
        perror(" file error!\n");
        return -1;
    }
    for (int i = 0; i < 5; i++)
        fscanf(pf1, "%s", name[i]);
    for (int i = 0; i < 5; i++)
        printf("%s\n", name[i]);
    //还可以使用结构体
    fclose(pf1);
}
#endif